package com.android.pagemarket.ui.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import com.android.pagemarket.R;
import com.android.pagemarket.business.model.Paper.Price;
import com.android.pagemarket.ui.widget.QuotItemView;

/*********************************************************
 * @author : zhaohua
 * @version : 2012-11-8
 * @see : 报价单双纸适配器
 * @Copyright : copyrights reserved by personal 2007-2011
 **********************************************************/
public class PaperTableAdapter extends ArrayListAdapter<Price>
{

    public PaperTableAdapter(Context context)
    {
        super(context);
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent)
    {
        if(convertView == null)
        {
            convertView = inflater.inflate(R.layout.listitem_paper, null); 
        }
        QuotItemView view = (QuotItemView)convertView;
        Price data = (Price)getItem(position);
        view.bindData(data,position);
        return convertView;
    }
}